﻿using System.Collections.Generic;
using System.Linq;
using YawetagDemo.Framework.Data;

namespace YawetagDemo.Framework.Impl.Data
{
    public partial class Band : IBand
    {
        IList<IArtist> IBand.Artists
        {
            get { return BandArtists.Select(i => i.Artist).OfType<IArtist>().ToList(); }
        }

        IList<IAlbum> IBand.Albums
        {
            get { return Albums.OfType<IAlbum>().ToList(); }
        }
    }
}
